/*
 * position.h
 *
 *  Created on: 11/giu/2014
 *      Author: ammin
 */

#ifndef POSITION_H_
#define POSITION_H_

#include "types.h"
#include "stock.h"
#include "order.h"

class Portfolio;

namespace NS_STOCKEXCHANGE{
	typedef enum{
		TARGET_NONE,
		TARGET_STOP_LOSS,
		TARGET_TAKE_PROFIT,
		TARGET_AMBIGUITY
	}TARGET_HIT;


	class Position{
	public:
		Position(Order &reqOrder, Portfolio *pAssocPF);
		~Position();
		PRICE GetCurrentValue() const;
		TARGET_HIT UpdateCurrentValue(StockData &stockData);

	private:
		Order m_order;
		Portfolio *m_pAssocPortfolio;
		StockData m_currentData;
	};
}


#endif /* POSITION_H_ */
